

--[[ !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! --]]
--[[ **                 MyQuests Quest Creation Wizard                  ** --]]
--[[ !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! --]]
MyQuests.CursorBypassItem = nil;

--[[ ********************************************************************* --]]
--[[ PickupContainerItem                                                   --]]
--[[   Fired each time an item is picked up and dropped into a bag slot.   --]]
function MyQuests:PickupContainerItem(bag, slot)
  if (CursorHasItem()) then
    MyQuests.CursorBypassItem = {};
    MyQuests.CursorBypassItem.bag = bag;
    MyQuests.CursorBypassItem.slot = slot;
    --MyQuests.CursorBypassItem.name = name;
    MyQuests.CursorBypassItem.link = GetContainerItemLink(bag, slot);
    MyQuests.CursorBypassItem.texture, MyQuests.CursorBypassItem.count = GetContainerItemInfo(bag, slot);
    
    -- TODO: figure out how to get usable state
    MyQuests.CursorBypassItem.isUseable = 1;
  end
  
  --mq.IO.dprint("Picked up: " .. MQBypass_CursorItem.name);
end
